<!DOCTYPE html>
<html class="x-admin-sm">
    
    <head>
        <meta charset="UTF-8">
        <title>上报列表</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="__ADMIN__/css/font.css">
        <link rel="stylesheet" href="__ADMIN__/css/xadmin.css">
        <script src="__ADMIN__/lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="__ADMIN__/js/xadmin.js"></script>
    </head>
    
    <body>
        <div class="x-nav">
            <span class="layui-breadcrumb">
                <a href="">首页</a>
                <a href="">上报管理</a>
                <a>
                    <cite>上报列表</cite></a>
            </span>
            <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
                <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
            </a>
        </div>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                            <form class="layui-form layui-col-space5">
                                <div class="layui-input-inline layui-show-xs-block">
                                    <input class="layui-input" placeholder="开始日" name="datemin" id="datemin">
                                </div>
                                <div class="layui-input-inline layui-show-xs-block">
                                    <input class="layui-input" placeholder="截止日" name="datemax" id="datemax">
                                </div>
                                <div class="layui-input-inline layui-show-xs-block">
                                    <input type="text" name="phone" placeholder="人员" autocomplete="off" class="layui-input">
                                </div>
                                <div class="layui-input-inline layui-show-xs-block">
                                    <input type="text" name="workshop" placeholder="车间" autocomplete="off" class="layui-input">
                                </div>
                                <div class="layui-input-inline layui-show-xs-block">
                                    <input type="text" name="part" placeholder="部门" autocomplete="off" class="layui-input">
                                </div>
                                <div class="layui-input-inline layui-show-xs-block">
                                    <input type="text" name="danger" placeholder="风险点" autocomplete="off" class="layui-input">
                                </div>
                                <div class="layui-input-inline layui-show-xs-block">
                                    <select name="is_danger" id="is_danger">
                                        <option value='' <if condition="$is_danger == ''">selected="selected"</if>>全部</option>
										<option value='0' <if condition="$is_danger == 0">selected="selected"</if>>无隐患</option>
	                    				<option value='1' <if condition="$is_danger == 1">selected="selected"</if>>有隐患</option>
                                    </select>
                                </div>
                                <div class="layui-input-inline layui-show-xs-block">
                                    <select name="status" id="status">
                                        <option value='' <if condition="$status == ''">selected="selected"</if>>全部</option>
										<option value='0' <if condition="$status == 0">selected="selected"</if>>驳回</option>
	                    				<option value='1' <if condition="$status == 1">selected="selected"</if>>待处理</option>
										<option value='2' <if condition="$status == 2">selected="selected"</if>>完成</option>
                                    </select>
                                </div>

                                <div class="layui-input-inline layui-show-xs-block">
                                    <button class="layui-btn" lay-submit="" lay-filter="sreach">
                                        <i class="layui-icon">&#xe615;</i></button>
                                    <button type="reset" class="layui-btn layui-btn-sm layui-btn-danger">重置</button>
                                </div>
                            </form>
                        </div>

                        <div class="layui-card-body ">
                            <table class="layui-table layui-form">
                                <thead>
                                    <tr>
										<th>上报事件ID</th>
										<th>风险点id</th>
										<th>上报人</th>
										<th>是否隐患</th>
										<th>问题描述</th>
										<th>处理措施</th>
										<th>班组意见</th>
										<th>车间意见</th>
										<th>部门意见</th>
										<th>公司意见</th>
										<!--<th width="60">图片</th>-->
										<!--<th width="60">视频</th>-->
										<th>状态</th>
										<th>上报时间</th>
										<th>已处理人</th>
										<th>待处理人</th>
										<!-- <th width="100">操作</th> -->
                                    </tr>
                                </thead>
                                <tbody>
                                    <foreach name="list" item="v">					
							<tr>
								<td><{$v.push_id}></td>
								<td><{$v.object_id}></td>
								<td><{$v.push_user_name}></td>
								<td>
								    <if condition="$v['is_danger'] == 0">无
								    <else/>有	    			
								    </if>								
								</td>
								<td><{$v.desc}></td>
								<td><{$v.deal}></td>
								<td><{$v.sug1}></td>
								<td><{$v.sug2}></td>
								<td><{$v.sug3}></td>
								<td><{$v.sug4}></td>
								<!--<td>-->
									<!--<img src="<{$v['img_url']}>" alt="">-->
								<!--</td>-->
								<td>
									<if condition="$v['status'] == 0">待处理
										<elseif condition="$v['status'] == 1"/>待处理
										<elseif condition="$v['status'] == 2"/>完成
									</if>
								</td>
								<td><{$v['create_time']?date('Y-m-d H:i:s', $v['create_time']):''}></td>
								<td><{$v.deal_user_name}></td>
								<td><{$v.pending_user_name}></td>
								<!-- <td class="td-manage">
									<if condition="$v['state'] == 0">
										<a style="text-decoration:none" onClick="data_stop(this,<{$v.community_id}>,1)" href="javascript:;" title="禁用"><i class="Hui-iconfont">&#xe631;</i></a>
									<elseif condition="$v['state'] == 1"/>
										<a style="text-decoration:none" onClick="data_start(this,<{$v.community_id}>,0)" href="javascript:;" title="启用"><i class="Hui-iconfont">&#xe6e1;</i></a>
									</if>
									 <a title="帖子详情" data-title="帖子详情" _href="<{:U('Community/showCommunity', array('id'=>$v['community_id']))}>" onclick="Hui_admin_tab(this)" href="javascript:;" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe665;</i></a>
									 <a title="删除" href="javascript:;" onclick="data_del(this,<{$v.community_id}>)" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i>
										 </a>
								 </td> -->
							</tr>
						</foreach>
                                    
                                </tbody>
                            </table>
                        </div>
                        <div class="layui-card-body ">
                            <div class="page">
                                <div>
                                    <{$page}>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
    

    <script>layui.use(['laydate', 'form'],
        function() {
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#datemin' //指定元素
            });

            //执行一个laydate实例
            laydate.render({
                elem: '#datemax' //指定元素
            });
        });


    </script>

</html>